﻿/*==============================================================
 * PromoteMsgList.cs
 * Copyright (C) 2014 贵州惠众互联 Inc. All rights reserved.
 *==============================================================
 * Author:   罗应红
 * Date:     2014/02/17 09:40:07.
 * Version:  1.0
 * QQ:		 88962800
*==============================================================*/

using System;
using QDT.Core.Domain.Enums;

namespace QDT.Core.Domain {
    public class PromoteMsgList:Entity {
        /// <summary>
        /// 手机号或邮件地址
        /// </summary>
        public string Dest { set; get; }
        /// <summary>
        /// 消息类型
        /// </summary>
        public MsgType SendType { set { InnerSendType = (int)value; } get { return (MsgType) InnerSendType; } }
        
        public int InnerSendType { set; get; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { set; get; }
        /// <summary>
        /// 消息标题
        /// </summary>
        public string Title { set; get; }
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendTime { set; get; }
        /// <summary>
        /// 是否发送
        /// </summary>
        public bool IsSend { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { set; get; }

        public int UserId { set; get; }
        /// <summary>
        ///  发送结果
        /// </summary>
        public string Result { set; get; }
        /// <summary>
        /// 是否发送成功
        /// </summary>
        public bool IsSuccess { set; get; }
        /// <summary>
        /// 是否支持Html
        /// </summary>
        public bool IsHtml { set; get; }
        /// <summary>
        /// 消息Id
        /// </summary>
        public int MsgId { set; get; }
    }
}